﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Argos.Collections
{
	public interface IEventfulList<T> : IList<T>
	{

		event EventHandler<EventArgs> Cleared;
		event EventHandler<CancelEventArgs> Clearing;
		event EventHandler<ItemEventArgs<T>> ItemAdded;
		event EventHandler<CancelItemEventArgs<T>> ItemAdding;
		event EventHandler<ItemEventArgs<T>> ItemRemoved;
		event EventHandler<CancelItemEventArgs<T>> ItemRemoving;

		void AddRange(IEnumerable<T> items);
	}
}
